<?php 
if (!get_option('ini_bulletin') && get_option('ini_admin')){
echo '<div id="map">';
echo initial_map($s);
echo '<div id="login">';
global $user_ID, $user_identity, $user_email, $user_login;
get_currentuserinfo();
if (!$user_ID) {echo '<span class="author"><a href="'.get_bloginfo('url').'/wp-login.php?action=register" title="我要注册">注册</a> | <a href="'.wp_login_url( home_url(add_query_arg(array(),$wp->request)) ).'" title="登陆后台">登陆</a></span>';}
else { echo '<span class="img">';global $userdata; get_currentuserinfo(); echo get_avatar($userdata->ID, 18); echo '</span> <span class="author">您好 '.$user_identity.' | <a href="'.get_bloginfo('url').'/wp-admin/">管理</a> | <a href="'.get_bloginfo('url').'/wp-login.php?action=logout&amp;amp;redirect_to='.urlencode($_SERVER['REQUEST_URI']).'">退出</a></span>';} echo '</div></div>';
}
else { echo '<div id="map">';echo initial_map($s);echo '</div>';}
function initial_map($s){
echo '<a href="'.get_bloginfo('url').'" >Home</a> &gt; ';
if(is_single()){
if (get_the_category()){
the_category(' &gt; ',multiple);echo' &gt; 正文';
}
}
elseif (is_page()){the_title();}
elseif (is_category()){single_cat_title();}
elseif (is_tag()){single_tag_title();}
elseif (is_day()){the_time('Y年n月j日');echo"发布的文章";}
elseif (is_month()){the_time('Y年n月');echo"发布的文章";}
elseif (is_year()){the_time('Y年');echo"发布的文章";}
elseif (is_search()){echo '包含词条“'.$s.'”的内容';}
}?>